package day11;

/**
 * @author oldliu
 * @since 1.0
 */
public class UsbCamera extends Camera implements Usb {
    public UsbCamera(String brand) {
        super(brand);
    }

    @Override
    public void plugin() {
        System.out.println("相机接上了usb口，指示灯变红");
    }

    @Override
    public void unuplug() {
        System.out.println("相机从usb口移除，指示灯灭掉");
    }

    @Override
    public void work() {
        System.out.println("usb相机拍了一张照片！");
        super.takePhoto();
    }
}
